﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EnvironmentEditor.Resources;

namespace EnvironmentEditor
{
    public partial class TextureNameForm : Form
    {
        private ResourceManager manager;

        public TextureNameForm(ResourceManager manager)
        {
            InitializeComponent();
            this.manager = manager;
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(txtName.Text))
            {
                MessageBox.Show("Name shall not be empty.");
                e.Cancel = true;
            }

            base.OnClosing(e);
        }
    }
}
